package cn.iocoder.yudao.module.pplan.enums;

import cn.hutool.core.util.ArrayUtil;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * project : hangshiServer
 * <p> 舱位等级 </p>
 *
 * @author yisl
 * @date 2025-07-17【星期四】
 **/
@Getter
@AllArgsConstructor
public enum PPlanProduceMarkStatusEnum {
    MARK_STATUS_1("1", "未标记"),
    MARK_STATUS_2("2", "普通标记");

    private final String code;
    private final String description;

    public static String getDesc(String code) {
        return ArrayUtil.firstMatch(userType -> userType.getCode().equals(code), PPlanProduceMarkStatusEnum.values()).getDescription();
    }

}
